﻿using Microsoft.VisualStudio.TestTools.UnitTesting;
using System;

namespace DemoVisualStudioUnitTest.Test2
{
	[TestClass()]
	public class PilotTest
	{
		/// <summary>
		///A test for Hello
		///</summary>
		[TestMethod()]
		public void HelloTest()
		{
			Pilot target = new Pilot();
			target.Firstname = "Dave";
			target.Name = "Lizotte";
			string expected = "Bonjour je m'appel Dave Lizotte et je suis un pilote";
			string actual;
			actual = target.SayHello();
			Assert.AreEqual(expected, actual);
		}

		/// <summary>
		///A test for Work
		///</summary>
		[TestMethod()]
		public void WorkTest()
		{
			Pilot target = new Pilot();
			target.Firstname = "Dave";
			target.Name = "Lizotte";
			string expected = "Le pilote Dave Lizotte est au travail...";
			string actual;
			actual = target.Work();
			Assert.AreEqual(expected, actual);
		}
	}

	[TestClass()]
	public class TechnicianTest
	{
		/// <summary>
		///A test for Hello
		///</summary>
		[TestMethod()]
		public void HelloTest()
		{
			Technician target = new Technician();
			target.Firstname = "Dave";
			target.Name = "Lizotte";
			string expected = "Bonjour je m'appel Dave Lizotte et je suis un Technicien";
			string actual;
			actual = target.SayHello();
			Assert.AreEqual(expected, actual);
		}

		/// <summary>
		///A test for Work
		///</summary>
		[TestMethod()]
		public void WorkTest()
		{
			Technician target = new Technician();
			target.Firstname = "Dave";
			target.Name = "Lizotte";
			string expected = "Le Technicien Dave Lizotte est au travail...";
			string actual;
			actual = target.Work();
			Assert.AreEqual(expected, actual);
		}
	}
}
